﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SQ.Domain
{
    public class IntegranteFila
    {
        public int Id
        {
            get;
            set;
        }

        public int FilaId
        {
            get;
            set;
        }

        public virtual Fila Fila
        {
            get;
            set;
        }

        public int UsuarioId
        {
            get;
            set;
        }

        public virtual Usuario Usuario
        {
            get;
            set;
        }

        public bool IsPreferencial
        {
            get;
            set;
        }

        public int QtdePessoas
        {
            get;
            set;
        }

        public DateTime DataEntradaFila
        {
            get;
            set;
        }

        public DateTime DataSaidaFila
        {
            get;
            set;
        }

        public bool IsValid()
        {
            return ((this.Usuario != null && this.Usuario.Id != 0) &&
                (this.Fila != null && this.Fila.Id != 0));
        }
    }
}
